#include <sys/file.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <sstream>

#include "../LogClass/myconfig.h"
#include "../LogClass/logfile.h"

#include <Ice/Ice.h>
#include "./WorkQueue.h"
#include <sstream>

#include <libmemcached/memcached.h>

using namespace std;


	void
WorkQueue::destroy()
{
        IceUtil::Monitor<IceUtil::Mutex>::Lock lock(_monitor);

        //
        // Set done flag and notify.
        //
        _done = true;
        con.disconnect();
        _monitor.notify();
}

